<!--
        *后台订单列表页面
        * 
        *
        * @author      3+1项目组.freedom
        * @version     2018-01-30 19:45    
-->
{extend name="AdminPublic:public"}
{block name="admin"}
<style>
  .red{
    color: red;
  }
</style>
  <div class="mws-panel grid_8"> 
   <div class="mws-panel-header"> 
    <span><i class="icon-table"></i>订单详情<a href="/adminorder/index" class="btn btn-info" style="float:right;">返回订单列表</a></span> 
   </div> 
   <div class="mws-panel-body no-padding"> 
    <div id="DataTables_Table_1_wrapper" class="dataTables_wrapper" role="grid">
     
     <table class="mws-datatable-fn mws-table dataTable" id="DataTables_Table_1" aria-describedby="DataTables_Table_1_info">
     <thead> 
       <tr role="row">
        <th class="" role="columnheader" tabindex="0" aria-controls="DataTables_Table_1" rowspan="1" colspan="1" aria-sort="ascending" aria-label="Rendering engine: activate to sort column descending" >{$data.time|date="Y-m-d",###}</th>
        <th class="" role="columnheader" tabindex="0" aria-controls="DataTables_Table_1" rowspan="1" colspan="4" aria-label="Platform(s): activate to sort column ascending" >订单号：{$data.orderid}</th>
        <th class="" role="columnheader" tabindex="0" aria-controls="DataTables_Table_1" rowspan="1" colspan="2" aria-label="CSS grade: activate to sort column ascending" >
        {if condition="($data.status eq 0)"}
        <a href="javascript:void(0)" class="btn">未付款</a>
        {elseif condition="($data.status eq 1)"/}
        <a href="javascript:void(0)" class="btn">已付款</a>
        <a href="javascript:void(0)" class="btn">未发货</a>
        {elseif condition="($data.status eq 2)"/}
        <a href="javascript:void(0)" class="btn">已发货</a>
        <a href="javascript:void(0)" class="btn">未签收</a>
        {elseif condition="($data.status eq 3)"/}
        <a href="javascript:void(0)" class="btn">已签收</a>
        <a href="javascript:void(0)" class="btn">未评价</a>
        {elseif condition="($data.status eq 4)"/}
        <a href="javascript:void(0)" class="btn">已评价</a>
        <a href="javascript:void(0)" class="btn">查看评价</a>
        {else/}
        <a href="javascript:void(0)" class="btn">无效订单</a
        {/if}
        </th>
       </tr> 
      </thead> 
      <thead> 
       <tr role="row">
        <th class="" role="columnheader" tabindex="0" aria-controls="DataTables_Table_1" rowspan="1" colspan="1" aria-sort="ascending" aria-label="Rendering engine: activate to sort column descending" >ID</th>
        <th class="" role="columnheader" tabindex="0" aria-controls="DataTables_Table_1" rowspan="1" colspan="1" aria-label="Browser: activate to sort column ascending" >商品图片</th>
        <th class="" role="columnheader" tabindex="0" aria-controls="DataTables_Table_1" rowspan="1" colspan="1" aria-label="Platform(s): activate to sort column ascending" >商品名</th>
        <th class="" role="columnheader" tabindex="0" aria-controls="DataTables_Table_1" rowspan="1" colspan="1" aria-label="CSS grade: activate to sort column ascending" >单价</th>
        <th class="" role="columnheader" tabindex="0" aria-controls="DataTables_Table_1" rowspan="1" colspan="1" aria-label="CSS grade: activate to sort column ascending" >商品数量</th>
        <th class="" role="columnheader" tabindex="0" aria-controls="DataTables_Table_1" rowspan="1" colspan="1" aria-label="CSS grade: activate to sort column ascending" >商品小计</th>
       </tr> 
      </thead> 
       
      
      <tbody role="alert" aria-live="polite" aria-relevant="all">
      {foreach name="info" item="value"}
       <tr class="odd" align="center"> 
        <td class=" sorting_1">{$value['oid']}</td> 
        <td class=" "><img src="{$value['pic']}" style="width:50px;"></td> 
        <td class=" ">{$value['goodsname']}</td>   
        <td class=" ">{$value['price']}</td> 
        <td class=" ">{$value['gnum']}</td> 
        <td class=" ">{$value['price']*$value['gnum']} ￥</td>
       </tr>
       {/foreach}
      </tbody>
    <thead> 
       <tr role="row">
        <th class="" role="columnheader" tabindex="0" aria-controls="DataTables_Table_1" rowspan="1" colspan="1" aria-sort="ascending" aria-label="Rendering engine: activate to sort column descending" >收货地址：</th>
        <th class="" role="columnheader" tabindex="0" aria-controls="DataTables_Table_1" rowspan="1" colspan="3" aria-label="Platform(s): activate to sort column ascending" >地址：{$data.site}</th>
        <th class="" role="columnheader" tabindex="0" aria-controls="DataTables_Table_1" rowspan="1" colspan="1" aria-label="Platform(s): activate to sort column ascending" >收货人：{$data.linkname}(收)</th>
        <th class="" role="columnheader" tabindex="0" aria-controls="DataTables_Table_1" rowspan="1" colspan="1" aria-label="Platform(s): activate to sort column ascending" >电话：{$data.phone}</th>
       </tr> 
      </thead>
      <thead> 
       <tr role="row">
        <th class="" role="columnheader" tabindex="0" aria-controls="DataTables_Table_1" rowspan="1" colspan="1" aria-sort="ascending" aria-label="Rendering engine: activate to sort column descending" >总计：</th>
        
        <th class="red" role="columnheader" tabindex="0" aria-controls="DataTables_Table_1" rowspan="1" colspan="6" aria-label="Platform(s): activate to sort column ascending" >{$data.money}元</th>
       </tr> 
      </thead> 
     </table>
     <div class="dataTables_paginate paging_full_numbers" id="pages">
     </div>
    </div> 
   </div> 
  </div>
 </body>
</html>
{/block}
{block name="title"}后台订单详情{/block}

